package com.hongawen.poi.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2022年03月30日 16:49
 */
@Data
public class Course implements Serializable {

    @Excel(name="课程名称",needMerge = true)
    private String name;

    @ExcelEntity(id = "absent")
    private Teacher teacher;

    @ExcelCollection(name = "学生")
    private List<Student> students;

}
